package com.ty.cloudpicture.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ty.cloudpicture.model.dto.space.SpaceAddRequest;
import com.ty.cloudpicture.model.dto.space.SpaceQueryRequest;
import com.ty.cloudpicture.model.dto.spaceUser.SpaceUserAddRequest;
import com.ty.cloudpicture.model.dto.spaceUser.SpaceUserQueryRequest;
import com.ty.cloudpicture.model.entity.Space;
import com.ty.cloudpicture.model.entity.SpaceUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.cloudpicture.model.entity.User;
import com.ty.cloudpicture.model.vo.SpaceUserVO;
import com.ty.cloudpicture.model.vo.SpaceVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author ong char
* @description 针对表【space_user(空间用户关联)】的数据库操作Service
* @createDate 2025-03-04 15:36:46
*/
public interface SpaceUserService extends IService<SpaceUser> {

    long addSpaceUser(SpaceUserAddRequest spaceUserAddRequest);

    void validSpaceUser(SpaceUser spaceUser, boolean add);

    List<SpaceUserVO> getSpaceUserVOList(List<SpaceUser> spaceUserList);

    QueryWrapper<SpaceUser> getQueryWrapper(SpaceUserQueryRequest spaceUserQueryRequest);



    SpaceUserVO getSpaceUserVO(SpaceUser spaceUser, HttpServletRequest request);


}
